<?php
/**
 * Created by PhpStorm
 * User: whh
 * Date: 2023/8/25
 * Time: 16:02
 */

namespace app\common\model;


use think\Model;
use think\model\concern\SoftDelete;

class Bookshelf extends Model
{
    protected $table = 'quick_user_bookshelf';
    //软删除
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;

    public function novel()
    {
        return $this->hasOne(Novel::class, 'id', 'novel_id')->field("id,cover,title,origin_title,author,freq_id,class_id,update_status,chapter_up_time");
    }
}